
package club.caihappy.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;

/**
 * Created by DELL on 2021/10/4
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Person {
    @Value("张三")
    private String name;
    @Value("#{20-1}")
    private int age;
    @Value("${person.nickName}")
    private String nickName;

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }
}
